package myWork;

public class Test1 {
    public static void main(String[] args) {
        int stu = methodage(1);
        System.out.println(stu);
    }

    private static int methodage(int i) {
        if (i == 1) {
            return 10;
        } else {
            return 2 + methodage(i - 1);
        }
    }
}
